<template>
	<view>
		<view class="page">
			<comp-common v-bind="{data:data}" @getUserInfo="getUserInfo" @myLogin="myLogin" @getPhoneNumber="getPhoneNumber" @hideGetCoupon="hideGetCoupon" @closeCouponBox="closeCouponBox" @navigatorClick="navigatorClick"></comp-common>
			<comp-header v-bind="{data:data}" @relevanceError="relevanceError" @relevanceSuccess="relevanceSuccess"></comp-header>
			<view class="body after-navber">
				<view style="background: #fff;padding:32upx 0">
					<wx-parse :myNodes="data.content.nodes"></wx-parse>
        </view>
			</view>
			<comp-footer v-bind="{data:data}"></comp-footer>
		</view>
	</view>
</template>

<script>var myVue = {};
	var t = require("../../wxParse/wxParse.js");
	export default {
		data() {
			return {
				data: {
						version: this.getApp._version,
						content: {}
				}
			};
		},
		onLoad: function(e) {myVue = this;
        myVue.getApp.page.onLoad(this, e);
        var a = this;
        myVue.getApp.request({
            url: myVue.getApp.api.default.article_detail,
            data: {
                id: e.id
            },
            success: function(e) {
                0 == e.code && (a.getApp.core.setNavigationBarTitle({
                    title: e.data.title
                }), t.wxParse("content", "html", e.data.content, a)), 1 == e.code && a.getApp.core.showModal({
                    title: "提示",
                    content: e.msg,
                    showCancel: !1,
                    confirm: function(t) {
                        t.confirm && a.getApp.core.navigateBack();
                    }
                });
            }
        });
    }
	}
</script>

<style scoped>

page {
    min-height: 100%;
    background: #fff;
    overflow-x: hidden;
}
</style>
